package com.lwl.service.impl.sds;

import com.lwl.entity.sds.TSdsRecordDetail;
import com.lwl.service.sds.TSdsRecordDetailService;
import com.lwl.dao.sds.TSdsRecordDetailMapper;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (TSdsRecordDetail)表服务实现类
 *
 * @author Lei
 * @since 2022-11-09 21:50:16
 */
@Service
public class TSdsRecordDetailServiceImpl implements TSdsRecordDetailService {
   @Autowired
   private TSdsRecordDetailMapper tSdsRecordDetailDao;

   @Override
   public boolean insertDetails(List<TSdsRecordDetail> details) {
      int i = 0;
      for (TSdsRecordDetail detail : details) {
         i+=tSdsRecordDetailDao.insert(detail);
      }
      return details.size()==i;
   }
}
